package com.cily.utils.t_webrtc.singlr.pad;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import com.cily.utils.app.ac.BaseActivity;
import com.cily.utils.t_webrtc.R;

public class SelectResidentActivity extends BaseActivity {
    private EditText edit_number_block;
    private EditText edit_number_floor;
    private EditText edit_number_unit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_select_resident);

        edit_number_block =  (EditText)findViewById(R.id.et_block);
        edit_number_floor =  (EditText)findViewById(R.id.et_floor);
        edit_number_unit =  (EditText)findViewById(R.id.et_unit);

        findImg(R.id.img_btn_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        findImg(R.id.img_btn_next).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Bundle bundle = new Bundle();

                bundle.putString("block", edit_number_block.getText().toString());
                bundle.putString("floor", edit_number_floor.getText().toString());
                bundle.putString("unit", edit_number_unit.getText().toString());

                toAc(ConnectToActivity.class, bundle);

            }
        });
    }
}
